package dev.detekt.test.utils

import java.io.ByteArrayOutputStream
import java.io.PrintStream

class StringPrintStream private constructor(
    private val stream: ByteArrayOutputStream,
) : PrintStream(stream) {

    constructor() : this(ByteArrayOutputStream())

    override fun toString(): String = stream.toString()
}
